//
//  OneTableViewCell.m
//  UI豆瓣2015到2016跨年作业
//
//  Created by LHY on 15/12/31.
//  Copyright © 2015年 Lanou 32 李昊宇. All rights reserved.
//

#import "OneTableViewCell.h"

@implementation OneTableViewCell



- (void)dealloc
{
    [_addressLabel release];
    [_timeLabel release];
    [_wisherLabel release];
    [_categoryLabel release];
    [_Iv release];
    [_titleLabel release];
    [_participantLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self Activity];
    }
    return self;
}

- (void)Activity {

    self.addressLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_addressLabel];
    [_addressLabel release];
    
    self.timeLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_timeLabel];
    [_timeLabel release];
    
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
    [_titleLabel release];
    
    self.wisherLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_wisherLabel];
    [_wisherLabel release];
    
    self.participantLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_participantLabel];
    [_participantLabel release];
    
    self.categoryLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_categoryLabel];
    [_categoryLabel release];
    
    self.Iv = [[UIImageView alloc] init];
    [self.contentView addSubview:_Iv];
    [_Iv release];




}


- (void)layoutSubviews {

    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(10, 10, 300, 50);
    UIImageView *imag = [[UIImageView alloc] initWithFrame:CGRectMake(10, 60, 15, 15)];
    imag.image = [UIImage imageNamed:@"/Users/dllo/Desktop/UI豆瓣2015到2016跨年作业/UI豆瓣2015到2016跨年作业/icon_date@2x.png"];
    [self.contentView addSubview:imag];
    [imag release];
    _timeLabel.frame = CGRectMake(25, 60, 150, 15);
    UIImageView *image1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 75, 15, 15)];
    image1.image = [UIImage imageNamed:@"/Users/dllo/Desktop/UI豆瓣2015到2016跨年作业/UI豆瓣2015到2016跨年作业/icon_spot@2x.png"];
    [self.contentView addSubview:image1];
    [image1 release];
    _addressLabel.frame = CGRectMake(25, 75, 150, 15);
    UIImageView *image2 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 90, 15, 15)];
    image2.image = [UIImage imageNamed:@"/Users/dllo/Desktop/UI豆瓣2015到2016跨年作业/UI豆瓣2015到2016跨年作业/icon_catalog@2x.png"];
    [self.contentView addSubview:image2];
    _categoryLabel.frame = CGRectMake(25, 90, 50, 15);
    
    
    UILabel *labe1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 150, 50, 15)];
    labe1.text = @"感兴趣:";
    [self.contentView addSubview:labe1];
    [labe1 release];
    _wisherLabel.frame = CGRectMake(60, 150, 50, 15);
    _wisherLabel.textColor = [UIColor redColor];
    UILabel *labe2 = [[UILabel alloc] initWithFrame:CGRectMake(120, 150, 50, 15)];
    labe2.text = @"参加:";
    [self.contentView addSubview:labe2];
    [labe2 release];
    _participantLabel.frame = CGRectMake(170, 150, 75, 15);
    _participantLabel.textColor = [UIColor redColor];
    
    
    _Iv.frame = CGRectMake(270, 20, 100, 175);
    _Iv.backgroundColor = [UIColor blackColor];
    
    
    
    
    

}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
